package com.xyc.merchant.order.service.impl;

import com.xyc.merchant.order.bean.WxbOrder;
import com.xyc.merchant.order.mapper.OrderMapper;
import com.xyc.merchant.order.service.OrderService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
@Service
public class OrderServiceImpl implements OrderService {

    @Resource
    private OrderMapper orderMapper;
    @Override
    public void addOrder(WxbOrder wxbOrder) {
        orderMapper.addOrder(wxbOrder);
    }

    @Override
    public void updateOrderState(Integer state, String orderId) {
        orderMapper.updateOrderState(state,orderId);
    }
}
